package com.bw.entity.order;

import java.math.BigDecimal;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.io.Serializable;




import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yzz
 * @since 2020-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pi_order_item_process")
public class PiOrderItemProcess extends Model<PiOrderItemProcess> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单零件ID
     */
    @TableField("orderItemId")
    private Long orderItemId;

    /**
     * 工序ID
     */
    @TableField("processId")
    private Long processId;

    /**
     * 准备工时单位分钟
     */
    @TableField("preWorkHour")
    private Double preWorkHour;

    /**
     * 单件工时单位分钟
     */
    @TableField("sgWorkHour")
    private Double sgWorkHour;

    /**
     * 保存顺序
     */
    @TableField("sn")
    private Integer sn;

    /**
     * 工序费用
     */
    @TableField("proCost")
    private BigDecimal proCost;

    /**
     * 准备工时费用
     */
    @TableField("preCost")
    private BigDecimal preCost;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public Double getPreWorkHour() {
        return preWorkHour;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderItemId() {
        return orderItemId;
    }

    public void setOrderItemId(Long orderItemId) {
        this.orderItemId = orderItemId;
    }

    public Long getProcessId() {
        return processId;
    }

    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    public void setPreWorkHour(Double preWorkHour) {
        this.preWorkHour = preWorkHour;
    }

    public Double getSgWorkHour() {
        return sgWorkHour;
    }

    public void setSgWorkHour(Double sgWorkHour) {
        this.sgWorkHour = sgWorkHour;
    }

    public Integer getSn() {
        return sn;
    }

    public void setSn(Integer sn) {
        this.sn = sn;
    }

    public BigDecimal getProCost() {
        return proCost;
    }

    public void setProCost(BigDecimal proCost) {
        this.proCost = proCost;
    }

    public BigDecimal getPreCost() {
        return preCost;
    }

    public void setPreCost(BigDecimal preCost) {
        this.preCost = preCost;
    }
}
